import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const TOOLS: AppRouteRecordRaw = {
  path: '/tools',
  name: 'tools',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.tools',
    icon: 'icon-tool',
    requiresAuth: true,
    order: 1100,
  },
  children: [
    {
      path: 'chart',
      name: 'Chart',
      component: () => import('@/views/test/chart.vue'),
      meta: {
        locale: 'menu.tools.chart',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'test',
      name: 'Test',
      component: () => import('@/views/test/list.vue'),
      meta: {
        locale: 'menu.tools.test',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'form',
      name: 'TestForm',
      component: () => import('@/views/test/form.vue'),
      meta: {
        locale: 'menu.tools.testForm',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'table',
      name: 'TestTable',
      component: () => import('@/views/test/table.vue'),
      meta: {
        locale: 'menu.tools.testTable',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default TOOLS;
